count even and odd numbers in a list